package de.lindenvalley.sevmob;

import android.os.Bundle;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.support.v4.app.NavUtils;

public class MainActivity extends Activity implements OnClickListener {
	
	private SevMobTracker tracker;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_main);
        tracker = new SevMobTracker(this);
        View v = findViewById(R.id.buttonInstall);
        v.setOnClickListener(this);
        
        v = findViewById(R.id.buttonUninstall);
        v.setOnClickListener(this);
        
        v = findViewById(R.id.buttonUpdate);
        v.setOnClickListener(this);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

	@Override
	public void onClick(View v) {
		int id = v.getId();
		switch (id){
		case R.id.buttonInstall:
			tracker.trackerInstall("12");
			break;
		case R.id.buttonUninstall:
			tracker.trackerInstall("12");
			break;
		case R.id.buttonUpdate:
		}
		
		
	}
	
	@Override
	protected void onResume() {
		super.onResume();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
	}

    
}
